cmake_minimum_required(VERSION 3.3)
project(ffmpeg)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${ffmpeg_SOURCE_DIR}/cmake")
set(BIN_DIR ${ffmpeg_SOURCE_DIR}/bin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(SDL2 REQUIRED)
find_package(FFmpeg REQUIRED)
include_directories(${SDL2_INCLUDE_DIR} ${FFmpeg_INCLUDE_DIRS} )
set(SOURCE_FILES main.cpp)
add_executable(ffmpeg ${SOURCE_FILES})
file(COPY bigbuckbunny_480x272.h265 DESTINATION .)
target_link_libraries(ffmpeg ${SDL2_LIBRARY} ${FFmpeg_LIBRARIES})